package org.kust.bbs.admin.mapper;

import org.apache.ibatis.annotations.Param;
import org.kust.bbs.pojo.entity.User;
import org.kust.bbs.pojo.vo.UserDetailsVO;
import org.kust.bbs.pojo.vo.UserSimpleVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    //管理员后台创建新用户账号
    int insert(User User);

    UserSimpleVO getByUsername(String username);

    int updateEnableByUsername(@Param("username") String username, @Param("isEnable") int isEnable);

    List<UserDetailsVO> list();

}
